package com.xxwy.stack;

/**
 * @author xxwy
 *
 */
public interface Stack<E> {

    int getSize();

    boolean isEmpty();

    int getCapacity();

    void push(E e);

    E pop();

    /**
     * 看一眼栈顶元素
     * @return
     */
    E peek();

}
